home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
7_6.lha
/
7_6
/
7_6f.h
< prev
next >
Wrap
Text File
|
1993-08-08
|
805b
|
38 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ manage a doubly-linked list
lass dlist
dlink *last;
dlink *curr;
ublic:
dlist();
dlist(ent e);
~dlist();
int isempty() { return last != 0; }
void clear();
// set current pointer to the ends of the list
void reset() { curr = 0; }
// move around the list, leaving the links there
int next(ent &e);
int prev(ent &e);
// move around the list, removing the links
int getnext(ent &e);
int getprev(ent &e);
// manipulate around the beginning
// and end of the list
void insert(ent e);
void append(ent e);
// manipulate around the current entry
void inserthere(ent e);
void appendhere(ent e);
;